﻿<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/>

<xsl:template match="/">

	<div class="bloc_right-column">
		<h1>Collaborateurs</h1>
		<xsl:if test="count(/GlobalVPLink2013/ListeIlsArrivent/Collaborateur) > 0">
		<span class="title_slider">Ils arrivent</span>
		<div class="slider">
			<a id="prevSlide"></a>
			<a id="nextSlide"></a>
			<div id="slider-window">
				<ul id="slides">
					<xsl:for-each select="/GlobalVPLink2013/ListeIlsArrivent/Collaborateur">
						<xsl:sort select="@Nom"/>
						<li class="slide">
							<div class="slide-image">
								<img src="{@Photo}" title="{@Nom}" alt="{@Nom}"/>
							</div>
							<div class="slide-content">
								<span><xsl:value-of select="@Nom"/></span>
								<p><xsl:value-of select="@Description" disable-output-escaping="yes"/></p>
							</div>
						</li>					
					</xsl:for-each>
				</ul>
			</div>
		</div>
		</xsl:if>
		<xsl:if test="count(/GlobalVPLink2013/ListeIlsBougent/Collaborateur) > 0">
		<span class="title_slider">Ils bougent</span>
		<div class="slider">
			<a id="prevSlide2"></a>
			<a id="nextSlide2"></a>
			<div id="slider-window">
				<ul id="slides2">
					<xsl:for-each select="/GlobalVPLink2013/ListeIlsBougent/Collaborateur">
						<xsl:sort select="@Nom"/>
						<li class="slide">
							<div class="slide-image">
								<img src="{@Photo}" title="{@Nom}" alt="{@Nom}"/>
							</div>
							<div class="slide-content">
								<span><xsl:value-of select="@Nom"/></span>
								<p><xsl:value-of select="@Description" disable-output-escaping="yes"/></p>
							</div>
						</li>					
					</xsl:for-each>
				</ul>
			</div>
		</div>
		</xsl:if>
		<xsl:if test="count(/GlobalVPLink2013/ListeOffresInternes/OffreInterne) > 0">
		<xsl:variable name="interne"><xsl:value-of select="@IntituleInterne" disable-output-escaping="yes"/></xsl:variable>
		<xsl:variable name="externe"><xsl:value-of select="@IntituleExterne" disable-output-escaping="yes"/></xsl:variable>
		<span class="title_slider">Offres Internes</span>
		<div class="slider">
			<a id="prevSlide3"></a>
			<a id="nextSlide3"></a>
			<div id="slider-window">
				<ul id="slides3">
					<xsl:for-each select="/GlobalVPLink2013/ListeOffresInternes/OffreInterne">
						<li class="slide">
							<div style="font-weight:bold; margin-bottom: 10px; margin-top: 10px; margin-left:5px">
								<xsl:if test="@IntituleInterne=@IntituleExterne">
									<a href="{@OffreUrl}"><xsl:value-of select="@IntituleInterne" disable-output-escaping="yes"/></a>
								</xsl:if>
								<xsl:if test="not(@IntituleInterne=@IntituleExterne)">
									<a href="{@OffreUrl}"><xsl:value-of select="@IntituleInterne" disable-output-escaping="yes"/> (<xsl:value-of select="@IntituleExterne" disable-output-escaping="yes"/>)</a>
								</xsl:if>
							</div>
							<div style="margin-left:5px">
								<div style="margin-bottom:5px;">
									R&#233;f <xsl:value-of select="@OffreRef" disable-output-escaping="yes"/> - <xsl:value-of select="@DatePublication" disable-output-escaping="yes"/> - <xsl:value-of select="@Localisation" disable-output-escaping="yes"/>
								</div>
								<div>
									Vous &#234;tes int&#233;ress&#233; (e), cliquez <a href="{@OffreUrl}">ici</a> ! D&#233;lais de 15 jours pour postuler &#224; la date de publication
								</div>
							</div>
						</li>
					</xsl:for-each>
				</ul>
			</div>
		</div>
		</xsl:if>
		<xsl:variable name="apos">'</xsl:variable>
		<xsl:if test="count(/GlobalVPLink2013/ListeIlsPartent/Collaborateur) > 0">
		<span class="title_slider">Ils partent vers d<xsl:value-of select="$apos"/>autres horizons</span>
		<p id="collabs_left">
			<xsl:for-each select="/GlobalVPLink2013/ListeIlsPartent/Collaborateur">
				<xsl:value-of select="@Description" disable-output-escaping="yes"/>
			</xsl:for-each>
		</p>
		</xsl:if>
	</div>
</xsl:template>

</xsl:stylesheet>